﻿<Window x:Class="WPFDBBrowser.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:my="clr-namespace:WPFDBBrowser.UserControls"
        mc:Ignorable="d"
        Title="MainWindow" 
        Height="405" 
        Width="569" >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Themes\DBTreeView.xaml"></ResourceDictionary>
                <ResourceDictionary Source="Themes\Controls.Generic.xaml"></ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition MinHeight="50" Height="50*" />
            <RowDefinition Height="5" />
            <RowDefinition MinHeight="50" Height="50*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition MinWidth="50" Width="50*"/>
            <ColumnDefinition Width="5" />
            <ColumnDefinition MinWidth="100" Width="50*"/>
        </Grid.ColumnDefinitions>

        <my:DBTreeView Grid.Row ="0"
                       Grid.RowSpan="3"
                       Grid.Column="0"
                       x:Name = "dbTreeView"
                       HorizontalAlignment="Stretch"
                       VerticalAlignment="Stretch" />
        
        <GridSplitter Grid.Row="0" 
                      Grid.RowSpan="3" 
                      Grid.Column="1"
                      Name="gridSplitter1" 
                      Background="DarkGray"
                      HorizontalAlignment="Stretch"
                      VerticalAlignment="Stretch"
                      />

        <my:QueryEditor Grid.Row="0"
                        Grid.Column ="2"
                        x:Name="queryEditor"
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch" />
        
        <GridSplitter Grid.Row="1" 
                      Grid.Column="2"
                      Name="gridSplitter2"
                      Background="DarkGray"
                      HorizontalAlignment="Stretch"
                      VerticalAlignment="Stretch" />
        
        <my:DataViewer Grid.Row="2"
                       Grid.Column="2"
                       x:Name="dataViewer"
                       HorizontalAlignment="Stretch"
                       VerticalAlignment="Stretch" />
    </Grid>
</Window>
